package ice.dao.util;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 * SqliteDB
 * 
 * @author abiao
 */
public class SqliteDB {

    private static Connection conn;

    private SqliteDB() {
    }

    /**
     * 获取sqlite内存数据库连接
     */
    public static Connection getConnection() throws Exception {
        if (conn == null) {
            Class.forName("org.sqlite.JDBC");
            conn = DriverManager.getConnection("jdbc:sqlite:");
        }
        return conn;
    }
}
